Direct Integration Method for solving PDE